package com.oo.inherit_3.bird;

/**
 * Penguin--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:05
 **/
public class Penguin extends Bird {

    public Penguin(String name, String color) {
        super(name, color);
    }

    public Penguin() {

    }

    @Override
    protected void fly() {
        System.out.println("我是企鹅"+this.getName()+"，我太胖了所以不会飞");
    }

    @Override
    protected void eat() {
        System.out.println("我喜欢吃鱼");
    }

    protected void swim() {
        System.out.println("虽然我很胖，但是我会游泳");
    }
}
